<!DOCTYPE html>
<html lang="zh-CN"  xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common_head :: commonHead('账号管理')"></head>
<body>
<div class="page-content">
    <div class="row animated fadeInRight">
        <div class="col-md-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <div class="m-b-xs" id="app">
                        <form class="form-horizontal row">
                            <div class="form-group col-md-12">
                                <label class="col-md-2 control-label">公众号名称：</label>
                                <div class="col-md-5">
                                    <input type="text" v-model="params.name" class="form-control">
                                </div>
                            </div>
                            <div class="form-group col-md-12">
                                <label class="col-md-2 control-label">微信号：</label>
                                <div class="col-md-5">
                                    <input type="text" v-model="params.account" class="form-control">
                                </div>
                            </div>
                            <div class="form-group col-md-12">
                                <label class="col-md-2 control-label">appID：</label>
                                <div class="col-md-5">
                                    <input type="text"  v-model="params.appid" class="form-control">
                                </div>
                            </div>
                            <div class="form-group col-md-12">
                                <label class="col-md-2 control-label">appsecret：</label>
                                <div class="col-md-5">
                                    <input type="text"  v-model="params.appsecret" class="form-control">
                                </div>
                            </div>
                            <div class="btn-box col-md-12">
                                <button type="button" class="btn btn-default" @click="save">
                                    <i class="fa fa-save"></i> 保存
                                </button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="common/onload_js :: onloadJs"></div>
</body>
<script type="application/javascript">
    var vue = new Vue({
        el:"#app",
        data:{
            params:{}
        },
        methods: {
            save:function(){
                ajaxDataController().post("/account/addAccount",this.params,function(data){
                    if(data.status==200){
                       common.layer.success("保存成功！");
                    }
                })
            }
        }
    });
</script>
</html>